home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 3 / Amiga Format CD03 (1996-07-04)(Future Publishing)(GB)(Track 1 of 6)[!][issue 1996-08].iso / pd / utilities / tinymeter / source / tinymeter_prefs / tinymeter.h < prev    next >
C/C++ Source or Header  |  1996-05-20  |  4KB  |  189 lines

  1. /***************************************************************/
  2. /* defines                                                     */
  3. /***************************************************************/
  4. ///
  5. #define idle_none       0
  6. #define idle_executive  1
  7. #define idle_own        2
  8.  
  9. #define col_label       0
  10. #define col_format      1
  11. #define col_base        2
  12. #define col_current     3
  13. #define col_negative    4
  14. #define col_bright      5
  15. #define col_dark        6
  16. #define col_bg          7
  17.  
  18. #define col_entry       1
  19. #define col_hbright     2
  20. #define col_hdark       3
  21. #define col_cursor      4
  22.  
  23. #define bg_none         0
  24. #define bg_file         1
  25. #define bg_snap         2
  26.  
  27. #define win_normal      0
  28. #define win_fixed       1
  29.  
  30. #define bd_none         0
  31. #define bd_simple       1
  32. #define bd_standard     2
  33. #define bd_double       3
  34.  
  35. #define ind_centered    0
  36. #define ind_left        1
  37. #define ind_right       2
  38.  
  39. #define typ_none            0
  40. #define typ_all             1
  41. #define typ_chip            2
  42. #define typ_fast            3
  43. #define typ_volume          4
  44. #define typ_idle            5
  45. #define typ_retina          6
  46. #define typ_largest_chip    7
  47. #define typ_largest_fast    8
  48. #define typ_largest_total   9
  49. #define typ_largest_retina  10
  50. #define typ_clock_          11
  51. #define typ_simplelauncher  12
  52. #define typ_iconlauncher    13
  53. #define typ_image           14
  54. #define typ_virtual         15
  55. #define typ_appgadget       16
  56.  
  57. #define typ_gauge       0
  58. #define typ_histmeter   1
  59. #define typ_clock       2
  60. ///
  61. /***************************************************************/
  62. /* gauge struct                                                */
  63. /***************************************************************/
  64. ///
  65. struct  GAU_Color
  66. {
  67.     UWORD   pen;
  68.     ULONG   red;    /* if pen is TRUE, this is the pen number */
  69.     ULONG   green;
  70.     ULONG   blue;
  71. };
  72.  
  73. struct tm_gau_set
  74. {
  75.     UWORD   type;
  76.     UWORD   gauge_type;
  77.  
  78.     UWORD   size_y;     /* in 100+x percent of the font size ! */
  79.  
  80.     char    font[128];
  81.     UWORD   font_size;
  82.  
  83.     char    label[16];
  84.     char    format[128];
  85.  
  86.     char    expansion[126]; /* used for image type and volume */
  87.     UWORD   sty_mirror;
  88.     UWORD   indent;
  89.  
  90.     UWORD   sty_3d;
  91.     UWORD   sty_border;
  92.     UWORD   sty_bg;
  93.     UWORD   sty_shadow;
  94.     UWORD   sty_nogauge;
  95.     UWORD   sty_noformat;
  96.     UWORD   sty_nobase;
  97.  
  98.     struct  GAU_Color Colors[8];
  99.  
  100.     struct  tm_gau_set *next;
  101. };
  102.  
  103. struct tm_lau_set
  104. {
  105.     UWORD   type;
  106.     UWORD   gauge_type;
  107.  
  108.     UWORD   size_y;
  109.  
  110.     char    font[128];
  111.     UWORD   font_size;
  112.  
  113.     char    label[128];
  114.     char    picture[144];
  115.  
  116.     UWORD   indent;
  117.  
  118.     UWORD   sty_xen;
  119.     UWORD   sty_border;
  120.     UWORD   sty_bg;
  121.     UWORD   sty_shadow;
  122.     UWORD   sty_down;
  123.     UWORD   sty_transparent;
  124.     UWORD   dummy;
  125.  
  126.     struct  GAU_Color Colors[8];
  127.  
  128.     struct  tm_gau_set *next;
  129. };
  130.  
  131. ///
  132. /***************************************************************/
  133. /* System struct                                               */
  134. /***************************************************************/
  135. ///
  136. struct tm_sys_set
  137. {
  138.     char    set_header[4];
  139.     UWORD   set_version;
  140.  
  141.     UWORD   x_pos;
  142.     UWORD   y_pos;
  143.     UWORD   x_siz;
  144.     UWORD   colums;
  145.  
  146.     char    pub_name[128];
  147.  
  148.     char    font_name[40];
  149.     UWORD   font_size;
  150.  
  151.     UWORD   bg_type;
  152.     char    bg_picture[126];
  153.     UBYTE   lay_falling;
  154.     BYTE    pri;
  155.     struct  GAU_Color bg_color;
  156.  
  157.     UWORD   vol_refresh;
  158.     UWORD   mem_refresh;
  159.  
  160.     UWORD   start_wait;
  161.     UWORD    start_usescreennotify;
  162.  
  163.     UWORD   win_move;
  164.     UWORD   win_backfront;
  165.     UWORD   win_border_x;
  166.     UWORD   win_border_y;
  167.     UWORD   win_space_x;
  168.     UWORD   win_space_y;
  169.  
  170.     UWORD   bd_type;
  171.     struct  GAU_Color bright_color;
  172.     struct  GAU_Color dark_color;
  173.  
  174.     UWORD   Executive;
  175. };
  176. ///
  177. /***************************************************************/
  178. /* tm_data                                                     */
  179. /***************************************************************/
  180. ///
  181. struct tm_data
  182. {
  183.     struct tm_sys_set *set;
  184.     struct tm_gau_set *list;
  185.  
  186.     UWORD  num_of_gaug;
  187. };
  188. ///
  189.